/****************************************************************************
 *
 * Copyright (C) 2003-2008 Los Alamos National Security, LLC
 *                         Packet Analytics Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License Version 2 as
 * published by the Free Software Foundation.  You may not use, modify or
 * distribute this program under any other version of the GNU General
 * Public License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 ****************************************************************************/
package nfse;

/*******************************************************************************
 * A data structure for storing information about a sensor.
 * 
 * @author
 * 
 * This code is the property of Los Alamos National Laboratory and the
 * University of California, Copyright 2005
 */
public class SensorInfo {

    /***************************************************************************
     * The identifier of the sensor from the system metadata
     */
    private int sensorID = -1;

    /***************************************************************************
     * The identifier of the tool (data type) associated with this sensor
     */
    private int toolID = -1;

    /***************************************************************************
     * The name of this sensor
     */
    private String name = "";

    /***************************************************************************
     * Sets the attributes of the new instance according to the parameters
     * 
     * @param sid
     *            The sensor identifier for the new instance
     * @param tid
     *            The tool identifier for the new instance
     * @param name
     *            The sensor name for the new instance
     */
    public SensorInfo(int sid, int tid, String name) {
        sensorID = sid;
        toolID = tid;
        this.name = name;
    }

    public String toString() {
        return "sensor: " + sensorID + ", " + toolID + ", " + name;
    }

	/**
	 * @param sensorID the sensorID to set
	 */
	public void setSensorID(int sensorID) {
		this.sensorID = sensorID;
	}

	/**
	 * @return the sensorID
	 */
	public int getSensorID() {
		return sensorID;
	}

	/**
	 * @param toolID the toolID to set
	 */
	public void setToolID(int toolID) {
		this.toolID = toolID;
	}

	/**
	 * @return the toolID
	 */
	public int getToolID() {
		return toolID;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
}